package com.qujia.station.mapper;

import com.qujia.station.domain.PayOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface PayOrderAllMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(PayOrder record);

    int insertSelective(PayOrder record);

    PayOrder selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(PayOrder record);

    int updateByPrimaryKey(PayOrder record);

    int deleteAll();

    int insetPayOrder();

    int insetPayOrderHistory();

    PayOrder selectLast();

    int insetNewPayOrder(@Param("orderId") Long orderId);

    /**
     * 批量删除
     * @param list
     * @return
     */

    public  int deletePay(List<Long> list);

    public  int deleteAllPay(PayOrder payOrder);

    public  int deleteAllPay2(PayOrder payOrder);

    public  int deleteAllPay3(PayOrder payOrder);

    /**
     * 批量删除
     * @param beginTime 开始日期时间
     * @param endTime 结束日期时间
     * @return 时间范围内的用户消费金额数据
     */
    List<PayOrder> getPayOrderInfoByPayDate(@Param("beginTime") String beginTime, @Param("endTime") String endTime,@Param("appUserMobilePhone")List<String> appUserMobilePhone);
}